package com.app.community.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 展示用户头像
 * @Date 2020/11/1 19:40
 **/
@Mapper
public interface AvatarMapper {

    /**
     * 查询用户头像
     * @return
     */
    @Select({"select avatar from user where user_id = #{userId}"})
    String selectUserAvatar(@Param("userId")String userId);
}
